﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OnlineHelp.ascx.cs" Inherits="controls_admin_OnlineHelp" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!-- forms -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5>
            Thiết đặt
        </h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <!-- end box / title -->
    <div class="form">
        <div class="fields">
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        Yahoo:</label>
                </div>
                <div class="input input-editor">
                    <asp:TextBox ID="txtYahoo" runat="server" CssClass="required"></asp:TextBox>
                </div>
            </div>
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        Skype:
                    </label>
                </div>
                <div class="input input-editor">
                    <asp:TextBox ID="txtSkype" runat="server" CssClass="required"></asp:TextBox>
                </div>
            </div>
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        HotLine:
                    </label>
                </div>
                <div class="input input-editor">
                    <asp:TextBox ID="txtHotline" runat="server" CssClass="required"></asp:TextBox>
                </div>
            </div>
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        Email:
                    </label>
                </div>
                <div class="input input-editor">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="required"></asp:TextBox>
                </div>
            </div>
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        Footer keyword:
                    </label>
                </div>
                <div class="input input-editor">
                    <FCKeditorV2:FCKeditor ID="fkcContent" runat="server" BasePath="~/fckeditor/" Width="100%"
                        Height="500px">
                    </FCKeditorV2:FCKeditor>
                </div>
            </div>
            <div class="field">
                <div class="label label-input">
                    <label for="input">
                        Bản đồ
                    </label>
                </div>
                <div class="input input-editor">
                    <asp:TextBox ID="txtMap" runat="server" CssClass="input" Width="100%"></asp:TextBox>
                </div>
            </div>
            <div class="buttons">
                <asp:Button ID="btnSubmit" runat="server" Text="Đồng ý" OnClick="btnSubmit_Click" />
            </div>
        </div>
    </div>
     <div style="text-align: center; margin: 10px">
            <%if (Session["url"] != null)
              {
                  if (Request.UrlReferrer != null)
                  {
                      if (!Request.UrlReferrer.ToString().Equals(Request.Url.ToString()))
                      {
                          Session["url"] = Request.UrlReferrer.ToString();                      
                  
            %>
            <a onclick="history.go(-1);" title="Trang trước">
                <%
}
                      else
                      {
                %>
                <a href='<%=Session["url"].ToString() %>' title="Trang trước">
                    <%   
}
                  }
                  else
                  {                      
                    %>
                    <a onclick="history.go(-1);" title="Trang trước">
                        <%}
              }
              else
              {
                  if (Request.UrlReferrer != null)
                      Session.Add("url", Request.UrlReferrer.ToString());
                  else
                      Session.Add("url", Request.Url.ToString());
                        %>
                        <a href="default.aspx" title="Trang trước">
                            <%} %>
                            <img src="../resources/images/icons/16x16/arrow-return.png" alt="Trang trước" /></a>
                        &nbsp;&nbsp; <a href="default.aspx" title="Trang chủ">
                            <img src="../resources/images/icons/16x16/home.png" alt="Trang chủ" /></a>
        </div>
</div>
<!-- end forms -->
